package com.power.sifa.std.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.std.model.Std_matter;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 申请事项类型 持久层(hibernate)
 */

public interface Std_matterDao extends JpaRepository<Std_matter, Serializable>, JpaSpecificationExecutor<Std_matter>, Repository<Std_matter, Serializable>, Std_matterDaoCustom<Std_matter, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Std_matter s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
